package com.yochi.pictureseditor.effects.converters;

import java.util.Locale;

public class TransparencyConverter implements ParameterConverter {
	
	private static final long serialVersionUID = -8715927409592332522L;

	public double convert(double parameter) {
		return parameter;
	}
	
	public double convertInverse(double value) {
		return (255.0f/100.0f)*value;
	}

	public String toDisplay(double parameter) {
		return String.format(Locale.FRANCE, "%.1f", parameter/255.0f*100.0f);
	}

}